* Symptoms and Stereotypes: Perceptions and Responses to Covid-19 in Malawi and Zambia
* Code Authors: Cecilia Ahsan Jansson and Erica Ann Metheney 
*
* Last Updated: October 27th, 2022. 

*This file reproduces most of the tables and figures in the paper
* See R-script for tables not included in this file

*-------------------------------------Table 3 


use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\2019 LGPI\LGPI2019_Malawi.dta"

*Sometimes certain people are considered  to be "outsiders" from a community. When you hear the term "outsider," who do you think of? 

*One from a different ethnic group
tab vnnp_q21_1

*One born in a different country
tab vnnp_q21_2

*One born in a different village/neighborhood in this region
 tab vnnp_q21_3
 
*One born in a different region
 tab vnnp_q21_4
 
*Other (specify)
 tab vnnp_q21_5
  
*Don't Know/Refuse to answer
 tab vnnp_q21_6

 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\2019 LGPI\LGPI2019_Zambia.dta"

*One from a different ethnic group
tab vnnp_q21_1

*One born in a different country
tab vnnp_q21_2

*One born in a different village/neighborhood in this region
 tab vnnp_q21_3
 
*One born in a different region
 tab vnnp_q21_4
 
*Other (specify)
 tab vnnp_q21_5
  
*Don't Know/Refuse to answer
 tab vnnp_q21_6

*-------------------------------------Table 4

*Malawi Round 1 Survey
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

*Would you be willing to have them as neighbors?

*Amwenye 
tab T_Q_105_2

*Zambian 
tab T_Q_105_1

*People with Covid-19 
tab T_Q_105_5

*Malawi Round 2 Survey 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R2\Data\MCSR2.dta"

*Amwenye 
tab t_q_212_1

*Zambian 
tab t_q_212_2

*People with Covid-19 
tab t_q_212_3


*----------------------------------------Table 5

*Zambia Survey 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

*Willing to have them as neighbors? 

*Malawian 
tab t_q_108_1

*Tanzanian
tab t_q_108_2

*People with Covid-19 
tab t_q_108_5


*--------------------------------------Figure 2

*Malawi R1:
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce3

*Coefficient plot
coefplot (amce1, label(Help)), bylabel(Help) /// 
|| (amce2, label(Move Freely)), bylabel(Move Freely) ///
|| (amce3, label(Has Covid)), bylabel(Has Covid) ///
||, xline(0) drop(_cons*) msymbol(C) omitted baselevels headings(1.NeighborAge= "{bf:Age}" 1.NeighborGender= "{bf:Gender}" 1.NeighborTimeInCommunity= "{bf:Time In Community}" 0.OutsiderTreatment= "{bf:Family Origin}" 1.NeighborSymptoms= "{bf:Symptoms}", labsize(medium)) byopts(row(1)) xsize(9) ciopts(recast(rcap)) scheme(plotplain)

*Malawi R2: 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms, robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms, robust 

est store amce3

*Coefficient plot
coefplot (amce1, label(Help)), bylabel(Help) /// 
|| (amce2, label(Move Freely)), bylabel(Move Freely) ///
|| (amce3, label(Has Covid)), bylabel(Has Covid) ///
||, xline(0) drop(_cons*) msymbol(C) omitted baselevels headings(1.NeighborAge= "{bf:Age}" 1.NeighborGender= "{bf:Gender}" 1.NeighborTimeInCommunity= "{bf:Time In Community}" 0.OutsiderTreatment= "{bf:Family Origin}" 1.NeighborSymptoms= "{bf:Symptoms}", labsize(medium)) byopts(row(1)) xsize(9) ciopts(recast(rcap)) scheme(plotplain)

*Zambia:
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce3

*Coefficient plot
coefplot (amce1, label(Help)), bylabel(Help) /// 
|| (amce2, label(Move Freely)), bylabel(Move Freely) ///
|| (amce3, label(Has Covid)), bylabel(Has Covid) ///
||, xline(0) drop(_cons*) msymbol(C) omitted baselevels headings(1.NeighborAge= "{bf:Age}" 1.NeighborGender= "{bf:Gender}" 1.NeighborTimeInCommunity= "{bf:Time In Community}" 0.OutsiderTreatment= "{bf:Family Origin}" 1.NeighborSymptoms= "{bf:Symptoms}", labsize(medium)) byopts(row(1)) xsize(9) ciopts(recast(rcap)) scheme(plotplain)

*-----------------------------------------------Table 8:

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

*Help
regress Help ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, robust 

est store acie4

*MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, robust

est store acie5

*HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms

est store acie6

*Generate LaTeX table for all regressions
esttab acie4 acie5 acie6 using acies456.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Interaction Component Effects\label{aice_malawi})


***---------------------------------------------Appendix 


*-------------------------------------------Table A1: 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment ib2.NeighborSymptoms, robust

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment ib2.NeighborSymptoms, robust

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment ib2.NeighborSymptoms, robust

est store amce3

*Generate LaTeX table

*Combining all three regressions into one table
esttab amce1 amce2 amce3 using amces123_R1.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Marginal Component Effects: Malawi R1 Binary Outsider Treatment\label{})


*---------------------------------------------Table A2
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib2.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib2.NeighborSymptoms, robust

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib2.NeighborSymptoms, robust

est store amce3

*Generate LaTeX table
esttab amce1 amce2 amce3 using amces123_R1nonbinary.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Marginal Component Effects: Malawi R1 Non Binary Outsider Treatment\label{})

*------------------------------------------------Table A3
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms, robust 

est store amce3

*Generate LaTeX table
esttab amce1 amce2 amce3 using amces123_R2.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Marginal Component Effects: Malawi R2 Binary Outsider Treatment\label{})

*-------------------------------------------Table A4 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust

est store amce3

*Generate LaTeX table
esttab amce1 amce2 amce3 using amces123_R2nonbinary.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Marginal Component Effects: Malawi R2 Non Binary Outsider Treatment\label{})


*-------------------------------------------Table A5

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms,robust 

est store amce3

*Combining all three regressions into one table
esttab amce1 amce2 amce3 using amces123_Zambia.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Marginal Component Effects: Zambia Binary Outsider Treatment\label{})

*-----------------------------------------Table A6

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib3.NeighborFamilyOrigin ib1.NeighborSymptoms,robust 

est store amce1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib3.NeighborFamilyOrigin ib1.NeighborSymptoms,robust 

est store amce2

**HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib3.NeighborFamilyOrigin ib1.NeighborSymptoms,robust 

est store amce3

*Combining all three regressions into one table
esttab amce1 amce2 amce3 using amces123_Zambianonbinary.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Marginal Component Effects: Zambia Non Binary Outsider Treatment\label{})

*----------------------------------------------Table A7 

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

**Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, robust

est store acie1

**MoveFreely
regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, robust

est store acie2


***HasCovid
regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, robust

est store acie3

*Generate LaTeX table for all regressions
esttab acie1 acie2 acie3 using acies123_MalawiR2.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Component Interaction Effects Malawi Round 2\label{})

*-----------------------------------------Table A8 

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

*Help
regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms,robust 

est store acie1

*Move Freely 
reg MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms,robust 

est store acie2

*Has Covid
reg HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms,robust 

est store acie3 

*Combining all three regressions into one table
esttab acie1 acie2 acie3 using acie123_Zambia.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Average Component Interction Effects Zambia\label{})

*---------------------------------------------Table 10

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia + Malawi\Data\Malawi_Zambia_Appended.dta"

**Help
reg Help ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment##HigherEducation ib1.NeighborSymptoms ib1.Country, robust  
est store edu1

**MoveFreely
reg MoveFreely ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment##HigherEducation ib1.NeighborSymptoms ib1.Country, robust   
est store edu2

**HasCovid
reg HasCovid ib1.NeighborAge ib1.NeighborGender ib2.NeighborTimeInCommunity ib0.OutsiderTreatment##HigherEducation ib1.NeighborSymptoms ib1.Country, robust  
est store edu3

esttab edu1 edu2 edu3 using edu123.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Outsider Education Interactions in Malawi and Zambia\label{eduint})

*----------------------------------------------Table A19

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

regress IndianNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg1 

regress CovidNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg2 

regress ZambianNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using malawir1_neighborbias.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Treatment Effect on Neighbor Bias Malawi R1\label{Table:neighborbiasm1})


*-------------------------------------------Table A20 
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

regress IndianNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg1 

regress CovidNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg2 

regress ZambianNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using malawir2_neighborbias.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Treatment Effect on Neighbor Bias Malawi R2\label{Table:neighborbiasm3})

*--------------------------------------------Table A21
use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

regress MalawianNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg1

regress CovidNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg2

regress TanzanianNeighborBias ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.NeighborFamilyOrigin ib1.NeighborSymptoms, robust
est store reg3

*Combining all regressions into one table
esttab reg1 reg2 reg3 using zambia_neighborbias.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Treatment Effect on Neighbor Bias\label{Table:neighborbias})

*------------------------------------------Table A22 

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment PreviousRespondent##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg1 

regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment PreviousRespondent##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg2

regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment PreviousRespondent##OutsiderTreatment ib1.NeighborSymptoms, robust
est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using malawir1_previousresp.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(HTE Previous Respondent Malawi R1\label{Table:hteprevrespm1})


*-----------------------------------------Table A23

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment PreviousRespondent##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg1 

regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment PreviousRespondent##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg2

regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment PreviousRespondent##OutsiderTreatment ib1.NeighborSymptoms, robust
est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using malawir2_previousresp.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(HTE Previous Respondent Malawi R2\label{Table:hteprevrespr2})

*-----------------------------------------Table A24

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"


regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms PreviousRespondent##OutsiderTreatment, robust 
est store reg1 

regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms PreviousRespondent##OutsiderTreatment, robust 
est store reg2 

regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms PreviousRespondent##OutsiderTreatment, robust 
est store reg3

*Combining all regressions into one table
esttab reg1 reg2 reg3 using zambia_previousresp.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(HTE Previous Respondent\label{Table:hteprevresp})


*----------------------------------------Table A25

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R1\Data\MCSR1.dta"

regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment SalientGroup##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg1 

regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment SalientGroup##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg2

regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment SalientGroup##OutsiderTreatment ib1.NeighborSymptoms, robust
est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using malawir1_salientgroup.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(HTE Salient Group Malawi R1\label{Table:htesalientm1})

*--------------------------------------------Table A26

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Malawi R3\Data\MCSR2.dta"

regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment SalientGroup##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg1 

regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment SalientGroup##OutsiderTreatment ib1.NeighborSymptoms, robust 
est store reg2

regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment SalientGroup##OutsiderTreatment ib1.NeighborSymptoms, robust
est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using malawir2_salientgroup.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(HTE Salient Group Malawi R2\label{Table:htesalientm2})

*------------------------------------------Table A27 

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Zambia\Data\ZCSR1.dta"

regress Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms SalientGroup##OutsiderTreatment, robust 
est store reg1 

regress MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms SalientGroup##OutsiderTreatment, robust 
est store reg2 

regress HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib0.OutsiderTreatment ib1.NeighborSymptoms SalientGroup##OutsiderTreatment, robust 
est store reg3

*Combining all regressions into one table
esttab reg1 reg2 reg3 using zambia_salientgroup.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(HTE Zambia Salient Group\label{Table:htesalientzambia})

*------------------------------------------Table A28 

use "C:\Users\xahsce\Documents\Projects\Covid-19 Stereotypes Experiment\Pooled Malawi\Pooled_Dataset_MalawiR1R2.dta"

**Help
reg Help ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, cluster(MCSR1SbjNum)

est store reg1 

**Move Freely
reg MoveFreely ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, cluster(MCSR1SbjNum)

est store reg2 

**Has Covid
reg HasCovid ib1.NeighborAge ib1.NeighborGender ib1.NeighborTimeInCommunity ib1.OutsiderTreatment ib1.NeighborSymptoms OutsiderTreatment##NeighborSymptoms, cluster(MCSR1SbjNum)

est store reg3 

*Combining all regressions into one table
esttab reg1 reg2 reg3 using pooled_malawi_interaction.tex, se label replace booktabs ///
alignment (D{.}{.}{-1}) ///
title(Interaction Outsider Symptoms Pooled Malawi Sample\label{Table:malawiintpooled})
